package com.pony.service.impl;

import com.pony.dao.LyMapper;
import com.pony.entity.Ly;
import com.pony.service.LyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("ylService")
public class LyServiceImpl implements LyService {
    @Autowired
    private LyMapper lyMapper;

    @Override
    public List<Ly> getAll() {
        return lyMapper.getAll();
    }

    @Override
    public int delLy(int lyid) {
        return lyMapper.delLy(lyid);
    }
}
